<div class="col-sm-12 mt20">
    <div class="panel">
        <div class="panel-body">
            <div class="col-lg-2">
                <input type="text" class="form-control" ng-model="searchform.company_name" placeholder="机构名称">
            </div>
            <div class="col-lg-2">
                <input type="text" class="form-control" ng-model="searchform.company_code" placeholder="机构编号">
            </div>
            <div class="col-lg-2">
                <ui-select ng-model="searchform.activity_id" theme="bootstrap">
                    <ui-select-match placeholder="选择公益游..">{{$select.selected.title}}</ui-select-match>
                    <ui-select-choices repeat="item.activity_id as item in activity_list | filter: $select.search">
                        <span ng-bind-html="item.title | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </div>
            <div class="col-lg-2-4">
                <div class="pull-left input-group">
                    <span class="input-group-addon">
                        <input type="checkbox" style="vertical-align: middle" ng-model="searchform.usedate" ng-true-value="1" ng-false-value="0">
                    </span>
                    <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="searchform.tour_date" is-open="searchform.opened"
                        readonly close-text="关闭" current-text="今天" clear-text="清除" ng-required="true" ng-click="dateOpen($event, searchform)"
                    />
                    <span class="input-group-btn" ng-click="dateOpen($event, searchform)">
                        <button type="button" class="btn btn-default">
                            <i class="glyphicon glyphicon-calendar"></i>
                        </button>
                    </span>
                </div>
            </div>
            <div class="col-lg-2 pull-right">
                <button type="button" class="btn btn-info search form-control" ng-click="search()">立即搜索</button>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <table class="table table-striped table-bordered">
            <thead>
                <tr>
                    <th class="col-md-1 text-center">出游日期</th>
                    <th class="col-md-2 text-center">机构信息</th>
                    <th class="col-md-2 text-center">活动名称</th>
                    <th class="col-md-1 text-center">自驾人数</th>
                    <th class="col-md-1 text-center">跟车人数</th>
                    <th class="col-md-1 text-center">参与人数</th>
                    <th class="col-md-1 text-center">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="obj in result_list">
                    <td class="text-center">{{obj.tour_date}}</td>
                    <td>{{obj.company_name}}（{{obj.company_code}}）</td>
                    <td>{{obj.title}}</td>
                    <td class="text-center">{{obj.self}}</td>
                    <td class="text-center">{{obj.tour}}</td>
                    <td class="text-center">{{obj.booked}}</td>
                    <td class="text-center">
                        <a class="btn btn-xs btn-warning" ng-click="info(obj)">详情</a>
                    </td>
                </tr>
                <tr>
                    <td class="text-center" colspan="3">总计</td>
                    <td class="text-center">{{total.self}}</td>
                    <td class="text-center">{{total.tour}}</td>
                    <td class="text-center">{{total.booked}}</td>
                    <td class="text-center">-</td>
                </tr>
            </tbody>
        </table>
    </div>

</div>